package cn.itsource.smartcampus.mapper;

import cn.itsource.smartcampus.domain.Teacher;

import java.util.List;

/**
* @author huawei
* @description 针对表【t_teacher】的数据库操作Mapper
* @createDate 2024-05-21 11:25:29
* @Entity cn.itsource.smartcampus.domain.Teacher
*/
public interface TeacherMapper {

    /**
     * 根据主键id删除数据
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 添加老师
     * @param tea
     * @return
     */
    int insert(Teacher tea);

    /**
     * 增强添加
     * @param tea
     * @return
     */
    int insertSelective(Teacher tea);

    /**
     * 根据id查询单个
     * @param id
     * @return
     */
    Teacher selectByPrimaryKey(Long id);

    /**
     * 根据id对象高级修改
     * @param tea
     * @return
     */
    int updateByPrimaryKeySelective(Teacher tea);

    /**
     * 查询所有
     * @return
     */
    List<Teacher> getAll();

    void batchAdd(List<Teacher> teachers);
}
